#!/bin/sh

BUNDLE_NAME=chord-proactive-samples-1.0-SNAPSHOT-bundle.tar.bz2

echo "Generating bundle START..."

mkdir -p generated
echo "  . mvn clean"
mvn clean > /dev/null
echo "  . mvn install -DskipTests"
mvn install -DskipTests > /dev/null
cd chord-proactive-samples
echo "  . mvn assembly:assembly"
mvn assembly:assembly > /dev/null
mv target/$BUNDLE_NAME ../generated/chord-proactive-bundle.tar.bz2
cd ..

echo "Generating bundle END"
echo 
ls -l generated
